import request from '@/utils/request'
import Vue from 'vue'

// 获取在线列表接口
export const getListingShop = data => {
    return request({
        url: Vue.prototype.$api.listing.getListingShop,
        method: 'post',
        data,
    })
}
// 获取collection接口
export const getCollections = data => {
    return request({
        url: Vue.prototype.$api.listing.get_collections,
        method: 'post',
        data,
    })
}
// 创建在线产品接口
export const queryListingList = data => {
    return request({
        url: Vue.prototype.$api.listing.index,
        method: 'post',
        data,
    })
}
// 创建在线产品接口
export const add = data => {
    return request({
        url: Vue.prototype.$api.listing.add,
        method: 'post',
        data,
    })
}
// 创建在线产品接口
export const edit = data => {
    return request({
        url: Vue.prototype.$api.listing.edit,
        method: 'post',
        data,
    })
}
// 获取在线产品详情接口
export const getInfo = data => {
    return request({
        url: Vue.prototype.$api.listing.getInfo,
        method: 'post',
        data,
    })
}
export const syncListShop = data => {
    return request({
        url: Vue.prototype.$api.listing.syncListShop,
        method: 'post',
        data,
    })
}
export const apiproductDelete = data => {
    return request({
        url: Vue.prototype.$api.listing.apiproductDelete,
        method: 'post',
        data,
    })
}
export const getListingShopList = data => {
    return request({
        url: Vue.prototype.$api.listing.shopIndex,
        method: 'post',
        data,
    })
}
export const getListingShopDetail = data => {
    return request({
        url: Vue.prototype.$api.listing.shopDetail,
        method: 'post',
        data,
    })
}
export const listingShopEdit = data => {
    return request({
        url: Vue.prototype.$api.listing.shopEdit,
        method: 'post',
        data,
    })
}
export const shopAddRemark = data => {
    return request({
        url: Vue.prototype.$api.listing.shopAddRemark,
        method: 'post',
        data,
    })
}
export const shopSendPublish = data => {
    return request({
        url: Vue.prototype.$api.listing.shopSendPublish,
        method: 'post',
        data,
    })
}
export const shopDelete = data => {
    return request({
        url: Vue.prototype.$api.listing.shopDelete,
        method: 'post',
        data,
    })
}
export const shopUp = data => {
    return request({
        url: Vue.prototype.$api.listing.shopUp,
        method: 'post',
        data,
    })
}
export const shopDown = data => {
    return request({
        url: Vue.prototype.$api.listing.shopDown,
        method: 'post',
        data,
    })
}
export const shopUpdatePublish = data => {
    return request({
        url: Vue.prototype.$api.listing.shopUpdatePublish,
        method: 'post',
        data,
    })
}
export const shopSpuList = data => {
    return request({
        url: Vue.prototype.$api.listing.shopSpuList,
        method: 'post',
        data,
    })
}